package com.suisung.shopsuite.agent.componet.anwser.base;

import dev.langchain4j.data.message.AiMessage;
import dev.langchain4j.model.output.FinishReason;
import dev.langchain4j.model.output.Response;
import lombok.Data;

@Data
// 上下文对象，传递处理过程中的数据
public class ResponseContext {
    private final Integer userId;
    private final Response<AiMessage> aiResponse;
    private FinishReason finishReason;
    private String result;

    public ResponseContext(Integer userId, Response<AiMessage> aiResponse) {
        this.userId = userId;
        this.aiResponse = aiResponse;
        this.finishReason = aiResponse.finishReason();
    }


}

